package com.sunshine.util;

import de.robv.android.xposed.XposedHelpers;

/**
 * @author Administrator
 */
public class ClassUtil {
    public static Class getClazz(String className, ClassLoader classLoader) {
        Class clazz = null;
        try {
            clazz = classLoader.loadClass(className);
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
            LogUtil.log(String.format("not find %s", className));
        }
        return clazz;
    }

    public static Class findClazz(String className, ClassLoader classLoader) {
        Class clazz;
        clazz = XposedHelpers.findClass(className, classLoader);
        return clazz;
    }
}
